using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;

namespace vlcplay.ViewModels;

public partial class LoginViewModel : ObservableObject
{
    [ObservableProperty]
    private string userName;

    [ObservableProperty]
    private string password = string.Empty; // Initialize to a non-null value

    [ObservableProperty]
    private bool rememberMe;

    public LoginViewModel()
    {
        UserName = UserStore.LoadUserName();
        RememberMe = !string.IsNullOrEmpty(UserName);
    }
}
